# -*- coding: UTF-8 -*-
from server.model import Base
from sqlalchemy.sql.functions import now
from sqlalchemy import Column, String, DateTime, Boolean


class SysAuthorities(Base):
    __tablename__ = 'sys_authorities'
    authority_id = Column(String(90), primary_key=True, nullable=False, doc='角色ID')
    authority_name = Column(String(191), doc='角色名')
    parent_id = Column(String(191), doc='父角色ID')
    default_router = Column(String(191), default='dashboard', doc='默认菜单')
    created_at = Column(DateTime, default=now(), doc='')
    updated_at = Column(DateTime, default=now(), doc='')
    deleted_at = Column(DateTime, doc='')
    deleted = Column(Boolean, default=0, doc='')
